#include "ALBWrite.h"


CALBWrite::CALBWrite()
{
	
}

CALBWrite::CALBWrite(CALStepItem* pStepItem)
{
	m_pStepItem = pStepItem;
}

CALBWrite::~CALBWrite()
{
}

void CALBWrite::test()
{

}

void CALBWrite::convert()
{
	if (m_pStepItem == NULL) return;
	
	try
	{
		CALSIBWrite* pStepItem = (CALSIBWrite*)m_pStepItem;

		m_dstMat = m_srcMat;

		String strFile = pStepItem->GetItemFileName();
		imwrite(strFile, m_dstMat);

		SetDstType(AL_DST_Mat_One);
	}
	catch (...)
	{

	}
}

void CALBWrite::convert(const Mat &src, Mat &dst)
{
	
}

